import { defHttp } from '/@/utils/http/axios';
import { ContentTypeEnum } from '/@/enums/httpEnum';

enum Api {
  getAttendanceStatisticList = '/api/attendance/record/statistic/list',
  exportExcel = '/api/attendance/record/statistic/list/export',
}
enum UApi {
  projectUser = '/admin-api/system/user-project/list-user-att',
}
/**
 * @description: 考勤统计
 */
export const attendanceStatisticList = (params?: any) => {
  return defHttp.get<any>({ url: Api.getAttendanceStatisticList, params });
};
/**
 * @description: 员工
 */
export const getProjectUser = (params?: any) => {
  return defHttp.get<any>({ url: UApi.projectUser, params });
};
export const exportExcel = (params?: any) => {
  return defHttp.download<any>({ url: Api.exportExcel, params }, '考勤统计.xls');
};
